package com.vay.de.dang.online.ui.my;

import android.os.Bundle;
import android.widget.TextView;

import com.vay.de.dang.online.ui.WithBack1Activity;
import com.vay.de.dang.online.util.WebViewUtil;
import com.vay.de.dang.online.R;
import com.vay.de.dang.online.util.VnDefine;
import com.vay.de.dang.online.databinding.ActivityAboutBinding;

public class PrivacyActivity extends WithBack1Activity {

    private ActivityAboutBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityAboutBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        ((TextView) findViewById(R.id.title_tv)).setText(R.string.title_privacy_agreement);
        findViewById(R.id.bnt_back_home).setOnClickListener(view -> finish());

        WebViewUtil.setting(binding.webView);
        binding.webView.loadUrl(VnDefine.PrivacyPolicyUrl);
    }

}
